<template>
  <div class="sensor">
    <div class="title">设备信息</div>
    <div class="content">
      <div>
        <span>设备名称：</span>
        <span>翼龙无人机</span>
      </div>
      <div>
        <span>设备功率：</span>
        <span>500</span>
      </div>
      <div>
        <span>续航时间：</span>
        <span>120分钟</span>
      </div>
    </div>
  </div>
</template>
<script setup>
import { ref, onMounted, onUnmounted, inject } from "vue";
import { useRoute, useRouter } from "vue-router";
const props = defineProps({});
let emit = defineEmits([""]);
const sensorList = ref([
  {
    name: "传感器1",
    status: 1,
  },
  {
    name: "传感器2",
    status: 1,
  },
  {
    name: "传感器3",
    status: 1,
  },
  {
    name: "传感器4",
    status: 2,
  },
  {
    name: "传感器4",
    status: 2,
  },
  {
    name: "传感器4",
    status: 2,
  },
  {
    name: "传感器4",
    status: 2,
  },
  {
    name: "传感器4",
    status: 2,
  },
  {
    name: "传感器4",
    status: 2,
  },
  {
    name: "传感器4",
    status: 2,
  },
  {
    name: "传感器40",
    status: 2,
  },
]);
onMounted(() => {});
</script>
<style scoped lang="scss">
.sensor {
  width: 300px;

  height: 25%;
  border: 1px solid #31ecf0;
  box-shadow: 0px 0px 5px 1px #31ecf0;
  position: absolute;
  left: 0;
  top: 0;

  z-index: 2;
  background: #1a0936;
  .title {
    height: 30px;
    background: #14384e;
    line-height: 30px;
    text-align: center;
  }
  .content {
    height: calc(100% - 30px);

    overflow: hidden;
    display: flex;
    flex-direction: column;

    justify-content: space-around;
  }
}
</style>
